package com.information.manage.common.constants;

import lombok.Getter;

public enum HandleFileTypeEnum {

    UPLOAD(1, "上传"),
    LISTEN(2, "监听"),
    MANU(3, "手动添加记录")
    ;

    @Getter
    private Integer code;
    private String des;

    HandleFileTypeEnum(Integer code, String des){
        this.code = code;
        this.des = des;
    }

    public static HandleFileTypeEnum getInstance(Integer code){
        for (HandleFileTypeEnum value : HandleFileTypeEnum.values()) {
            if (code == value.code) return value;
        }
        return null;
    }

}
